package com.shigu.admin.manager.vo;

/**
 * zTree用的实体对象
 * Created by Licca on 16/5/23.
 */
public class ZTreeVO {
    private Long id;
    private Long pId;
    private String name;
    private boolean open;
    private boolean isParent;
    private boolean checked;

    private String tag;
    private String tagComment;

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isOpen() {
        return open;
    }

    public void setOpen(boolean open) {
        this.open = open;
    }

    public Long getpId() {
        return pId;
    }

    public void setpId(Long pId) {
        this.pId = pId;
    }

    public boolean getIsParent() {
        return isParent;
    }

    public void setIsParent(boolean isParent) {
        this.isParent = isParent;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getTagComment() {
        return tagComment;
    }

    public void setTagComment(String tagComment) {
        this.tagComment = tagComment;
    }

    @Override
    public boolean equals(Object obj) {
        if(obj==null){
            return false;
        }
        ZTreeVO ztv=(ZTreeVO)obj;
        return this.getId().equals(ztv.getId());
    }

    @Override
    public String toString() {
        return id + "";
    }
}
